Skip to content

Conversation

@ecapuano
Copy link
Contributor

Summary

Adds MongoDB log collection capabilities to support incident response for CVE-2025-14847 (MongoBleed), a critical memory leak vulnerability in MongoDB's zlib message decompression.

Changes

  • New target: Targets/Logs/MongoDBLogs.tkape - Collects MongoDB log files from common Windows installation paths
  • Updated: Targets/Compound/ServerTriage.tkape (v1.1) - Now includes MongoDB logs

Log Paths Covered

  • C:\Program Files\MongoDB\Server\*\log\ and \logs\
  • C:\data\log\
  • C:\ProgramData\MongoDB\log\
  • C:\MongoDB\log\

Why This Matters

MongoBleed exploitation generates distinctive log patterns that are critical for detection:

  • Rapid connection bursts (thousands of connections in seconds)
  • Connection accepted/ended pairs with <10ms duration
  • Connections without compression negotiation

These logs enable behavioral detection of exploitation attempts against vulnerable MongoDB instances (versions 4.4.0-4.4.29, 5.0.0-5.0.31, 6.0.0-6.0.26, 7.0.0-7.0.27, 8.0.0-8.0.16, 8.2.0-8.2.2).

References

Note

These artifacts were developed on macOS without the ability to validate with KAPE locally. YAML syntax and structure have been validated programmatically and cross-referenced against existing targets in the repository.

Adds MongoDBLogs.tkape to collect MongoDB log files from common Windows
installation paths, supporting detection and investigation of CVE-2025-14847
(MongoBleed) exploitation attempts.

Log paths covered:
- C:\Program Files\MongoDB\Server\*\log(s)\
- C:\data\log\
- C:\ProgramData\MongoDB\log\
- C:\MongoDB\log\

Updates ServerTriage.tkape to include MongoDB logs in the compound target
for generic server artifact collection.
@AndrewRathbun AndrewRathbun merged commit 9fe6505 into EricZimmerman:master Dec 27, 2025
1 check passed
@ecapuano ecapuano deleted the add-mongodb-logs-target branch December 27, 2025 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants